#ifndef _TIMERPAGEBASE_H
#define _TIMERPAGEBASE_H

#include <Wt/WObject>

namespace Wt
{
	class WTimer;
}

class TimerPageBase : public Wt::WObject
{
public:
	TimerPageBase(int interval = 5000, Wt::WObject *parent = 0);

	int getInterval();
	void setInterval(int interval);
	void start();
	void stop();
protected:
	virtual void refresh() = 0;
private:
	void refresh0();
	
	Wt::WTimer *m_timer;
	int m_interval;
};

#endif

